package com.stone.business.gzrwd.action;

/**
 * <pre>
 * 工作任务单
 * @author 
 * </pre>
 */

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import net.sf.json.JSON;
import net.sf.json.JSONSerializer;
import net.sf.json.JsonConfig;

import com.stone.business.gzrwd.pojo.TGzrwd;
import com.stone.business.gzrwd.pojo.TGzrwdRw;
import com.stone.business.gzrwd.service.ZbjlCommonService;
import com.stone.business.plan.pojo.TBzgzrw;
import com.stone.business.plan.pojo.TPlan;
import com.stone.business.plan.pojo.TPlanBz;
import com.stone.para.IConstant;
import com.stone.sys.pojo.TBdz;
import com.stone.sys.pojo.TDictionary;
import com.stone.sys.pojo.TOrgan;
import com.stone.sys.pojo.TUser;
import com.stone.sys.service.DictionaryService;
import com.stone.sys.service.UserService;
import com.stone.utils.DateFormatTool;
import com.stone.utils.JsonUtils;
import com.stone.utils.MainUtils;
import com.stone.utils.StringUtils;

import frm.ssh.action.BaseAction;
import frm.ssh.exception.AppException;
import frm.ssh.util.SpringUtil;

public class GzrwdWpAction extends BaseAction {
	
	private static final long serialVersionUID = -4647594073681054487L;

	private ZbjlCommonService myService;
	
	private TGzrwd entity;
	
	private String id;
	
	private List<TDictionary> jclbList;
	
	//private List<TGzrwdXcjl> xcjlList;
	
	//private TGzrwdXcjl xcjl;
	
	private String ids;
	private String fxgznr;
	private String hiddenids;
	// 值班长
	List<HashMap<String,Object>> zbzList; 
	private List<TBdz> bdzList;
	private List<TDictionary> dydjList;
	private List<TDictionary> sblxList;
	private List<TOrgan> bzList;
	private TGzrwdRw rw;
	// 任务列表
	private List<TGzrwdRw> rwList = null;
	// 任务列表
	private List<TGzrwd> list = null;
	// 任务列表
	private List<TGzrwdRw> listRwd = null;
	private String isAdmin;
	List<HashMap<String, Object>> gzpnoList;
	/**
	 * 进入详细页面
	 * @return
	 * @throws AppException
	 */
	public String initDetail() throws AppException {
		
		// 修改进入
		if (!"0".equals(id)) {
			
			this.entity = (TGzrwd)myService.findById(Long.parseLong(id), TGzrwd.class.getName());
			
			super.getSession().setAttribute("gzrwdid", entity.getId());
		
			// 任务
			 listRwd = myService.findListByHql("from TGzrwdRw where gzrwdid = '" + entity.getId() + "'");
			
			// 负责人
			 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
				
			// 新建进入
		} else {
			
			listRwd = new ArrayList<TGzrwdRw>();

			this.entity = new TGzrwd();
			this.entity.setId(Long.parseLong("0"));
			this.entity.setState(super.getSearchBean().getCon1());
			
	    	zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group'or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
			String organid = ((TOrgan)super.getSession().getAttribute(IConstant.SESSION_TORGAN)).getId().toString();
			
		  //by wangtao update20110319
			this.entity.setOuid(((TOrgan)super.getSession().getAttribute(IConstant.SESSION_TORGAN)).getOrganCode().toString());
			super.getRequest().setAttribute("GZRWDLIST", new ArrayList<HashMap<String, Object>>());
			
			entity.setCjr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getName());
			entity.setCjrid(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getId());
			
			// by wangtao update20110105
			String sysdate = myService.getSysdate("yyyyMMdd");
			List<HashMap<String, Object>> list = myService.findListBySql("select MAX(bh) as bh from TAB_GZRWD where bh like '" + sysdate + "%'");
			
			// 票号取得
			if (list.get(0).get("bh") == null || "".equals(list.get(0).get("bh"))) {
				this.entity.setBh(sysdate + "0001");
				
			} else {
				if(this.entity.getBh()==null||this.entity.getBh().equals("")){
				this.entity.setBh(String.valueOf(Long.parseLong((String)list.get(0).get("bh")) + 1 ));
			
				}
			
			}

		}
		isAdmin = (String) super.getSession().getAttribute(IConstant.SESSION_ISADMIN);
		//HttpSession session= super.getSession();
		setDictionary();
		return SUCCESS;
	}
	
	/**
	 * 保存
	 * @return
	 * @throws AppException
	 */
	public String save() throws AppException {
		
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");
		setDictionary();
		// 新建时
		if (entity.getId() == 0) {
			
			entity.setCjsj(DateFormatTool.formatToDate(sysdate,true));
			// by wangtao update20120429
			String sysdate1 = myService.getSysdate("yyyyMMdd");
			List<HashMap<String, Object>> list = myService.findListBySql("select MAX(bh) as bh from TAB_GZRWD where bh like '" + sysdate1 + "%'");
			
			// 票号取得
			if (list.get(0).get("bh") == null || "".equals(list.get(0).get("bh"))) {
				this.entity.setBh(sysdate1 + "0001");
				
			} else {
				this.entity.setBh(String.valueOf(Long.parseLong((String)list.get(0).get("bh")) + 1 ));
			}
			myService.save(entity);	
		} else {
			entity.setXgr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getName());
			entity.setXgrid(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getId());
			entity.setXgsj(DateFormatTool.formatToDate(sysdate,true));
			myService.update(entity);
			if(this.entity.getRq()!=null){
			myService.updateByDHql("state = '6' ", "id in ("
				+ entity.getId() + ")", null, null, TGzrwd.class.getName());
				}
		}
		
		
		super.getSession().setAttribute("gzrwdid", entity.getId());
		myService.savePlanMonth(this.entity.getId(),this.listRwd);
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		// 任务
		 listRwd = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		 isAdmin = (String) super.getSession().getAttribute(IConstant.SESSION_ISADMIN);
		super.setInfo("保存成功");
		
		return SUCCESS;
	}
	
	/**
	 * 删除
	 * @return
	 * @throws AppException
	 */
	public String delete() throws AppException {
		
		myService.doDelAll(id, "TGzrwd");
		
		return "DEL-SUCCESS";
		
	}
	
	/**
	 * 查询字典项目
	 */
	public void getDic() {
		
		// 检查类别
		DictionaryService dicService = (DictionaryService) SpringUtil.getInstance().getBean("dicService");
		jclbList = dicService.findList("JCLB");
		
	}

	
	/**
	 * 手动归档
	 * @return
	 * @throws AppException
	 */
	public String history() throws AppException {
		
//		 状态修改
		entity.setState("6");//无票任务单历史为6:有票为9:
		myService.update(entity);
       super.getSession().setAttribute("gzrwdid", entity.getId());
		
		// 任务
		List<TGzrwdRw> listRwd = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd);
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		 setDictionary();
		super.setInfo("归档成功");
		
		return SUCCESS;
	}
	
	
	/**
	 * 通过任务保存
	 * @return
	 * @throws AppException
	 */
	public String saveRwd() throws AppException {
		
		//mySerice.saveGzrwdRwdList();
		
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");
		
		// 新建时
		if (entity.getId() == 0) {
			
		    entity.setState(super.getSearchBean().getCon1());
			entity.setCjr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getName());
			entity.setCjrid(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getId());
			entity.setCjsj(DateFormatTool.formatToDate(sysdate,true));
		
		//	myService.save(entity);	
		
		} else {
			entity.setXgr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getName());
			entity.setXgrid(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getId());
			entity.setXgsj(DateFormatTool.formatToDate(sysdate,true));
			//myService.update(entity);
		}
		
		super.getSession().setAttribute("gzrwdid", entity.getId());
		
		List<HashMap<String, Object>> listRwd =  (ArrayList<HashMap<String, Object>>) super.getSession().getAttribute("DBRWDLIST");
		
		// 保存工作任务单要保存　主表　工作任务单子表　相应业务表的是否出了工作单字段
		myService.saveGzrwdRw(ids, listRwd, entity,DateFormatTool.formatToDate(sysdate,true));
		
		// 任务
		List<TGzrwdRw> listRwd2 = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd2);
		
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		
		super.getSession().removeAttribute("DBRWDLIST");

		super.setInfo("保存成功");
		
		return SUCCESS;
	}
	
	/**
	 * 通过风险告知保存
	 * @return
	 * @throws AppException
	 */
	@SuppressWarnings("unchecked")
	public String saveFxgz() throws AppException {
		
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");

		entity.setXgr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getLoginId());
		entity.setXgsj(DateFormatTool.formatToDate(sysdate,true));
		
		// 保存风险告知
		myService.saveGzrwdFxgz(entity,ids, super.getRequest().getParameter("idsalready"));
		
		// 任务
		List<TGzrwdRw> listRwd2 = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd2);
		
		// 风险点
		//List<TGzrwdFxgz> listFxgz = myService.findListByHql("from TGzrwdFxgz where gzrwdid =" + entity.getId() + " order by id");
		//super.getRequest().setAttribute("FXGZLIST", listFxgz);
		
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		
		super.getSession().removeAttribute("DBRWDLIST");

		super.setInfo("保存成功");
		
		return SUCCESS;
	}
	/**
	 * 修改风险告知
	 * @return
	 * @throws AppException
	 */
	@SuppressWarnings("unchecked")
	public String updateFxgz() throws AppException {
		
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");

		entity.setXgr(((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getLoginId());
		entity.setXgsj(DateFormatTool.formatToDate(sysdate,true));
		
		// 修改风险告知
		//myService.saveGzrwdFxgz(entity,ids, super.getRequest().getParameter("idsalready"));
	//	myService.updateFxgznr(ids,fxgznr);
		// 任务
		List<TGzrwdRw> listRwd2 = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd2);
		
		// 风险点
		//List<TGzrwdFxgz> listFxgz = myService.findListByHql("from TGzrwdFxgz where gzrwdid =" + entity.getId() + " order by id");
		//super.getRequest().setAttribute("FXGZLIST", listFxgz);
		
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		
		super.getSession().removeAttribute("DBRWDLIST");

		super.setInfo("修改成功");
		
		return SUCCESS;
	}
	/**
	 * 工作任务单 未完成时处理
	 */
	public void updateRw() throws AppException {
		
		// 
		myService.updateGzrwdRwUnOver(this.id, super.getRequest().getParameter("valuesfwc"));

	}
	
	/**
	 * 删除工作任务或者风险告知
	 */
	public void deleteDetail() throws AppException {
		
		 // 任务
		if (!"TGzrwdFxgz".equals(super.getRequest().getParameter("model"))) {
			myService.updateGzrwdRwCancel(Long.parseLong(id));
			
			// 风险告知
		} else {
			myService.deleteAll(id, super.getRequest().getParameter("model"));
		}
		
	}
	
	/**
	 * 打印
	 * @return
	 * @throws AppException
	 */
	@SuppressWarnings("unchecked")
	public String print() throws AppException {
		
		this.entity = (TGzrwd)myService.findById(Long.parseLong(id), TGzrwd.class.getName());
		
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");
		this.entity.setPcsj(DateFormatTool.formatToDate(sysdate,true));
		
		myService.update(entity);
		
		// 任务
		List<TGzrwdRw> listRwd2 = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd2);
		
		
		super.getSession().removeAttribute("DBRWDLIST");
		
		return "PRINT-SUCCESS";
	}
	/**
	 * 删除代办任务
	 * @return
	 * @throws AppException
	 */
	public String deleteRwd() throws AppException {
		
		super.getSession().setAttribute("gzrwdid", entity.getId());
		
		List<HashMap<String, Object>> listRwd =  (ArrayList<HashMap<String, Object>>) super.getSession().getAttribute("DBRWDLIST");
		
		// 删除工作任务单
		myService.deleteGzrwdRw(ids, listRwd);
		
		// 任务
		List<TGzrwdRw> listRwd2 = myService.findListByHql("from TGzrwdRw where gzrwdid =" + entity.getId());
		super.getRequest().setAttribute("GZRWDLIST", listRwd2);
		
		// 负责人
		 zbzList = myService.getListByDHql("u.id as userid, u.name as username, u.organ.id as organid", "u.id = ur.userId and ur.roleId = r.id and (r.nameen = 'ZBZ' or r.nameen = 'group' or r.nameen = 'bhbby' or r.nameen = 'jxbby' or r.nameen = 'byqby' or r.nameen = 'sybby')", null, "group by u.id ,u.name, u.organ.id order by u.organ.id", "TUser u, TUserRole ur , TRole r");
		
		super.getSession().removeAttribute("DBRWDLIST");

		super.setInfo("保存成功");
		
		return SUCCESS;
	}
	/**
	 * 获得字典项目
	 */
	private void setDictionary() {
		
		// 变电站
		this.bdzList = myService.findListByHql(" from TBdz order by sortid");
		// 电压等级
		this.dydjList = myService.findListByHql(" from TDictionary where itemType = 'DYDJ' order by sortid");
		// 设备类型
		this.sblxList = myService.findListByHql(" from TDictionary where itemType = 'SBLX' order by sortid");
		// 班组
		this.bzList = myService.findListByHql(" from TOrgan where parentId=2 and organNameEn like '%B' order by id");
	
		
		
	}
	public void getGzpno() throws Exception {

		try {

			String bdzname = super.getRequest().getParameter("bdzname");
			String rq = super.getRequest().getParameter("rq");
			// 运行工作票号
			String sql="select t.ph as itemId,t.ph as itemName from TAB_GZPTJJL t where  to_char(t.xkgzsj,'yyyy-mm-dd')='"+DateFormatTool.formatToDate(rq, false)+"' and t.bdzname like '%"+bdzname+"%'";		
			UserService userServiceDIMIS = (UserService) SpringUtil.getInstance().getBean("userServiceDIMIS");
			gzpnoList=userServiceDIMIS.findListBySql(sql);
		} catch (Exception e) {
			gzpnoList=new ArrayList<HashMap<String, Object>>();
		}
		JsonConfig jsonConfig = JsonUtils.configJson(new String[] {},
				"yyyy-MM-dd");
		JSON json = JSONSerializer.toJSON(gzpnoList, jsonConfig);
		super.getResponse().getWriter().print(json.toString());

	}
	/**
	 * 保存任务
	 * @return
	 * @throws AppException
	 */
	public String saveRw() throws AppException {
		
		// 系统时间
		String sysdate = myService.getSysdate("yyyy-MM-dd HH24:mi");
		
		rw.setGzrwdid((Long)super.getSession().getAttribute("gzrwdid"));

		super.setInfo("保存成功");
		
		return getCzrw();
	}

	
	
	/**
	 * 删除任务
	 * @return
	 * @throws AppException
	 */
	public String deleteRw() throws AppException {
		
		myService.deleteGzrwdRw(id);
		
		return getCzrw();
		
	}
	public void deleteRwdDetail() throws Exception {
		myService.doDelAll(id, "TGzrwdRw");
        super.getResponse().getWriter().print("{msg:'删除成功'}");
	}

	/**
	 * 任务列表
	 * @return
	 * @throws AppException
	 */
	public String getCzrw() throws AppException {
		
		rwList = myService.findListByHql(" from TGzrwdRw where gzrwdid = " + super.getSession().getAttribute("gzrwdid"));
		
		return "CZRW-SUCCESS";
		
	}
	/**
	 * 月计划对应的工作任务单列表
	 * @return
	 * @throws AppException
	 */
	public String getGzrwdList() throws AppException {
		
		list = myService.findListByHql(" from TGzrwd where planid = " + id);
		
		return "GZRWD-LIST-SUCCESS";
		
	}
	/**
	 * 新建工单前验证当天工单存在否
	 * 
	 * @throws Exception
	 */
	public void initPermitCheck() throws Exception {
		String organid=((TUser) super.getSession().getAttribute(IConstant.SESSION_TUSER)).getOrgan().getId()+"";
		/*long count = myService
				.getTotalBySql("select count(*) as count from TAB_GZRWD where planid in ("
						+ getHiddenids() + ") and to_char(rq,'YYYYMMDD') = to_char(sysdate,'YYYYMMDD') and bgzr="+ organid);*/
		List list=myService.findListBySql("select count(*) as count from TAB_GZRWD where planid in ("
				+ getHiddenids() + ") and to_char(rq,'YYYYMMDD') = to_char(sysdate,'YYYYMMDD') and bgzr="+ organid);
		 HashMap hashmap = (HashMap)list.get(0);
		//long count=hashmap.get("count").toString();
		long count=Long.valueOf(Long.parseLong(String.valueOf(hashmap.get("count"))));
		super.getResponse().getWriter().print(count);

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setMyService(ZbjlCommonService myService) {
		this.myService = myService;
	}

	public List<TDictionary> getJclbList() {
		return jclbList;
	}

	public TGzrwd getEntity() {
		return entity;
	}

	public void setEntity(TGzrwd entity) {
		this.entity = entity;
	}


	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public List<HashMap<String, Object>> getZbzList() {
		return zbzList;
	}

	public String getFxgznr() {
		return fxgznr;
	}

	public void setFxgznr(String fxgznr) {
		this.fxgznr = fxgznr;
	}


	public List<TBdz> getBdzList() {
		return bdzList;
	}

	public void setBdzList(List<TBdz> bdzList) {
		this.bdzList = bdzList;
	}

	public List<TDictionary> getDydjList() {
		return dydjList;
	}

	public void setDydjList(List<TDictionary> dydjList) {
		this.dydjList = dydjList;
	}

	public List<TDictionary> getSblxList() {
		return sblxList;
	}

	public void setSblxList(List<TDictionary> sblxList) {
		this.sblxList = sblxList;
	}

	public List<TOrgan> getBzList() {
		return bzList;
	}

	public void setBzList(List<TOrgan> bzList) {
		this.bzList = bzList;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public ZbjlCommonService getMyService() {
		return myService;
	}

	public void setJclbList(List<TDictionary> jclbList) {
		this.jclbList = jclbList;
	}

	public void setZbzList(List<HashMap<String, Object>> zbzList) {
		this.zbzList = zbzList;
	}
	public String getHiddenids() {
		if (this.hiddenids != null) {
			if (!StringUtils.isNullOrBlank(this.hiddenids)) {
				if (this.hiddenids.startsWith(",")) {
					this.hiddenids = this.hiddenids.substring(1, this.hiddenids
							.length());
				}
				if (this.hiddenids.endsWith(",")) {
					this.hiddenids = this.hiddenids.substring(0, this.hiddenids
							.length() - 1);
				}
			}
		}
		return this.hiddenids;
	}

	public void setHiddenids(String hiddenids) {
		this.hiddenids = hiddenids;
	}

	public TGzrwdRw getRw() {
		return rw;
	}

	public void setRw(TGzrwdRw rw) {
		this.rw = rw;
	}

	public List<TGzrwdRw> getRwList() {
		return rwList;
	}

	public void setRwList(List<TGzrwdRw> rwList) {
		this.rwList = rwList;
	}

	public List<TGzrwd> getList() {
		return list;
	}

	public void setList(List<TGzrwd> list) {
		this.list = list;
	}

	public List<TGzrwdRw> getListRwd() {
		return listRwd;
	}

	public void setListRwd(List<TGzrwdRw> listRwd) {
		this.listRwd = listRwd;
	}

	public String getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

	public List<HashMap<String, Object>> getGzpnoList() {
		return gzpnoList;
	}

	public void setGzpnoList(List<HashMap<String, Object>> gzpnoList) {
		this.gzpnoList = gzpnoList;
	}

	
}
